﻿<%@ Page Title="GoldAir - Select Departing Flight" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="SelectDepartingFlight.aspx.vb" Inherits="GoldAir.SelectDepartingFlight" %>



<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <style type="text/css">
        .style2
        {
        width: 325px;
    }
        .style4
        {
            width: 415px;
        }
        .style5
        {
            width: 188px;
        }
        .style6
        {
            width: 650px;
        }
        .style7
        {
            width: 188px;
            text-align: right;
        }
        .style9
        {
        width: 154px;
        text-align: right;
    }
        .style10
        {
            width: 154px;
            text-align: right;
            height: 25px;
        }
        .style11
        {
            width: 325px;
            height: 25px;
        }
        .style16
        {
            width: 516px;
            height: 25px;
        }
        .style17
        {
        width: 516px;
    }
        .style18
        {
            width: 139px;
            height: 25px;
        }
        .style19
        {
        width: 139px;
    }
        .style20
        {
            width: 245px;
            text-align: right;
        }
    </style>

</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <%
    'Request all the data from the previous form    
    Dim Action As String
    
        If txtFlightNum.Text = "" Then
            txtFlightNum.Text = Request("ctl00$MainContent$txtFlight1")
        End If
        
        If txtRoute.Text = "" Then
            txtRoute.Text = Request("ctl00$MainContent$txtRoute")
        End If
        
        If txtDepartureTime.Text = "" Then
            txtDepartureTime.Text = Request("ctl00$MainContent$txtDepartureTime")
        End If
        
        If txtFlightTime.Text = "" Then
            txtFlightTime.Text = Request("ctl00$MainContent$txtFlightTime")
        End If
        
        If txtCost.Text = "" Then
            txtCost.Text = Request("ctl00$MainContent$txtCost")
        End If
        
       
        Action = Request("ctl00$MainContent$txtAction")
 
        'Debug Check all the items in the request 
    
        '  For Each Item In Request.Form
        ' Response.Write(Item & ": " & Request.Form(Item) & "<br>")
        ' Next
    
        If (Request("ctl00$MainContent$TxtFlight1") = "" And Action = Nothing) Then
            MsgBox("You Must Select a Flight!")
        
            '   Response.Redirect("default.aspx")
        Else
            Action = "Search"
        End If
       
%>
     <div>
        <h2>Costumer Information<br />
         </h2>
         <form name="Form1" action="SelectDepartingFlight.aspx" method="post">
         <input type="hidden" id="txtAction" value="none" runat="server"/>


             <table style="width: 91%;">
                 <tr>
                     <td class="style20">
                         Costumer Id:</td>
                     <td class="style6">
                         <asp:TextBox ID="txtUserId" runat="server" Width="190px"></asp:TextBox>&nbsp;(Valid Australian Id)</td>
                     <td class="style7">
                         Email:</td>
                     <td class="style4">
                         <asp:TextBox ID="txtEmail" runat="server" Width="189px"></asp:TextBox>
                     </td>
                 </tr>
                 <tr>
                     <td class="style20">
                         First Name:</td>
                     <td class="style6">
                         <asp:TextBox ID="txtFirstName" runat="server" Width="191px"></asp:TextBox>
                     </td>
                     <td class="style7">
                         Seat Number:</td>
                     <td class="style4">
                         <asp:Label ID="lblSeatN" runat="server" Text="N/A"></asp:Label>
                     </td>
                 </tr>
                 <tr>
                     <td class="style20">
                         Last Name:</td>
                     <td class="style6">
                         <asp:TextBox ID="txtLastName" runat="server" Width="190px"></asp:TextBox>
                     </td>
                     <td class="style5">
                         &nbsp;</td>
                     <td class="style4">
                         &nbsp;</td>
                 </tr>
                 </table>
              </form>
       
    </div>
         <div>
        <h2>Flight Information</h2>
         <p>
             <table style="width: 91%;">
                 <tr>
                     <td class="style10">
                         Flight Number:</td>
                     <td class="style16">
                         <asp:TextBox ID="txtFlightNum" runat="server" Width="96px"></asp:TextBox>
                     </td>
                     <td class="style18">
                         Cost:</td>
                     <td class="style11">
                         <asp:TextBox ID="txtCost" runat="server"></asp:TextBox>
                     </td>
                 </tr>
                 <tr>
                     <td class="style9">
                         Route:</td>
                     <td class="style17">
                         <asp:TextBox ID="txtRoute" runat="server"></asp:TextBox>
                     </td>
                     <td class="style19">
                         &nbsp;</td>
                     <td class="style2">
                         &nbsp;</td>
                 </tr>
                 <tr>
                     <td class="style9">
                         Departure Time:</td>
                     <td class="style17">
                         <asp:TextBox ID="txtDepartureTime" runat="server"></asp:TextBox>
                     </td>
                     <td class="style19">
                         &nbsp;</td>
                     <td class="style2">
                         &nbsp;</td>
                 </tr>
                 <tr>
                     <td class="style9">
                         Flight Time:</td>
                     <td class="style17">
                         <asp:TextBox ID="txtFlightTime" runat="server"></asp:TextBox>
                     </td>
                     <td class="style19">
                         &nbsp;</td>
                     <td class="style2">
                         <asp:Button ID="btnContinue" runat="server" style="text-align: right" 
                             Text="Save" />
                     <asp:Button ID="btnSeat" runat="server" style="text-align: right" 
                             Text="Continue" />
                     
                     </td>
                 </tr>
             </table>
         </p>
  
    </div>

</asp:Content>